package com.example.designpartten.strategy;

/**
 * 策略上下文
 * @author hql
 * @date 2020/4/14 17:35
 */
public class Context {

    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public void doAnything() {
        this.strategy.doSomething();
    }

}
